#pragma once
#include"RBT.h"
namespace set_map {
	template<class K>
	class set
	{
		struct set_getkoft
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};

	public:
		typedef typename RBTree<K, const K, set_getkoft>::Iterator iterator;
		typedef typename RBTree<K, const K, set_getkoft >::ConstIterator const_iterator;


		iterator begin()
		{
			return _t.Begin();
		}

		iterator end()
		{
			return _t.End();
		}

		const_iterator begin() const
		{
			return _t.Begin();
		}

		const_iterator end()  const
		{
			return _t.End();
		}

		pair<iterator, bool> insert(const K& key)
		{
			return _t.insert(key);
		}
		iterator Find(const K& key) {
			return _t.Find(key);
		}
	private:
		RBTree<K, const K, set_getkoft> _t;
	};
}